﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Avatar.Model;
using AvatarHelper;
using System.Web.Security;
using Avatar.Company;
using Avatar.Common;
using Avatar.MembershipService;
public partial class Company_InterViewRecord : System.Web.UI.Page
{
    public int _serviceID;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            var _user = LoginManager.GetCurrentUser();
            if (_user != null)
            {
                _serviceID = CompanyServiceManager.GetServiceType(_user.UserName).ServiceTypeID;
                using (var _adc = DBHelper.GetDataContext())
                {
                    gv_ResumeList.DataSource = _adc.InterViewRecord.Where(iv => iv.Company == _user.UserName);
                    gv_ResumeList.DataBind();

                }
            }
        }
    }
}
